<%@page contentType="text/html; charset=utf-8" import="java.sql.*, com.lmpop.trade.ti_listadvinfo.*"%>
<%@page import="com.lmpop.trade.ts_category.*" %>
<%@page import="com.lmpop.trade.ti_channel.*" %> 
<html>
<body>
	<%
   String sql=request.getParameter("q");
   String select="";
   Ts_categoryInfo ts_categoryInfo = new Ts_categoryInfo();
   
   if(sql.equals("3")){//商机
                                       
   		 select = ts_categoryInfo.getSelCatByTLevel("12", "1");
		 
	%>
			<select name="sort1" id="sort1" size="8" style="width:130px" onChange="setSecondClass(this.value);" onclick="setTypeName1(this)">
				<%=select%>
			</select>
			<select name="sort2" id="sort2"  size="8" style="width:130px;display:none" onChange="setTherdClass(this.value);" onclick="setTypeName2(this)">
				<option value="">请选择...</option>
			</select>
			<select name="sort3" id="sort3"  size="8" style="width:130px;display:none" onclick="setTypeName3(this)" >
				<option value="">请选择...</option>
			</select>
	<%
  
	}
		else 	if(sql.equals("0")){//商品
                                       
   		 select = ts_categoryInfo.getSelCatByTLevel("2", "1");
		 
	%>
			<select name="sort1" id="sort1" size="8" style="width:130px" onChange="setSecondClass(this.value);" onclick="setTypeName1(this)">
				<%=select%>
			</select>
			<select name="sort2" id="sort2"  size="8" style="width:130px;display:none" onChange="setTherdClass(this.value);" onclick="setTypeName2(this)">
				<option value="">请选择...</option>
			</select>
			<select name="sort3" id="sort3"  size="8" style="width:130px;display:none" onclick="setTypeName3(this)" >
				<option value="">请选择...</option>
			</select>
	<%
  
	}
		else  if(sql.equals("1")){//卖家
  	
   	  select = ts_categoryInfo.getSelCatByTLevel("1", "1");
		
	%>
		  <select name="sort1" id="sort1" size="8" style="width:130px" onChange="setSecondClass(this.value);" onclick="setTypeName1(this)">
				<%=select%>
		  </select>
			<select name="sort2" id="sort2"  size="8" style="width:130px;display:none" onChange="setTherdClass(this.value);" onclick="setTypeName2(this)">
				<option value="">请选择...</option>
			</select>
			<select name="sort3" id="sort3"  size="8" style="width:130px;display:none" onclick="setTypeName3(this)" >
				<option value="">请选择...</option>
			</select>
	<%
		
  	}if(sql.equals("2")){//资讯
	
		Ti_channelInfo channelinfo = new Ti_channelInfo();
   
		select = channelinfo.getSelchannelByTLevel("1");

	%>
	  <select name="sort1" id="sort1" size="8" style="width:130px" onChange="setSecondClassSe(this.value);" onclick="setTypeName11(this)">
			<%=select%>
	  </select>
		<select name="sort2" id="sort2"  size="8" style="width:130px;display:none" onChange="setTherdClassSe(this.value);" onclick="setTypeName22(this)">
			<option value="">请选择...</option>
		</select>
		<select name="sort3" id="sort3"  size="8" style="width:130px;display:none" onclick="setTypeName33(this)" >
			<option value="">请选择...</option>
		</select>
	<%
  	}
	%>




  
</body>
</html>